// dlg.txt

//Mk Edit
//mark_quest_dest(zone,x,y,layer,quest);
//	code =
//		sf(,,2);
//		toggle_quest(19,10);
//		award_party_xp(MED_QUEST_XP);
//	break;

begintalkscript;

variables;

short this_town = 38;

begintalknode;
	tag = 1;
	condition = get_sdf(this_town,1) == 0;
	text1 = "You approach the ruins of Fort Cariaris. The Low Dhagans have been plagued by raiders who strike fast and flee. Now, at last, you have found one of their fortresses. This is where they gather, are supplied, and plan attacks. Here, you can force them to make a stand.";
	text2 = "You aren't the first person to attack. There are barriers everywhere, and the ground is scorched and covered with debris. All earlier assaults have been repulsed. However, few defenders are visible. You see several ka-wolves standing behind ballistas. If you get close, they will be able to send powerful lances toward you.";
	text3 = "This crumbling fortress has three towers, one to the west, one to the east, and one far to the north. You only see movement in the windows of the closer two towers.";
	text4 = "Though the raiders have been defeated, some of their warriors haven't gotten the news. A few of them are determined to make a last stand here.";
	code =
		sf(this_town,1,1);
		if (gf(42,11) == 0)
			rs(4);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(this_town,2) == 0;
	text1 = "You get close to the north tower. It is very tall, with a commanding view of the valley. However, it is also covered with cracks. Earthquakes have left it heavily damaged. A pitched battle here would probably collapse it.";
	text2 = "For this reason, the raiders are not using this tower. However, they did make one modification. There is a huge, crumbling hole near the top of the tower. In it, you can barely make out an old, tattered banner. It is a banner of Haven. Strange.";
	code =
		sf(this_town,2,1);
		if (gf(38,11) > 0)
			rs(2);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(this_town,3) == 0;
	text1 = "This passage is full of spider webs, covering the walls and hanging from the ceiling. They constantly stick to your arms and head. You have to sweep them out of the way with your weapons to keep from being buried in the stuff.";
	text2 = "This part of the cellar is unused by the raiders. You doubt any of them have been back here for weeks.";
	code =
		sf(this_town,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(this_town,4) == 0;
	text1 = "You sneak into the back end of the main hall. This is where most of the raiders sleep and plan. You can hear them ahead, a mix of human shouts and ka-beast growls.";
	text2 = "The walls and floors are scorched and crumbling, but this building is mostly intact. If you can pass the defenders, you may at last be able to confront one of the leaders of the raiders.";
	code =
		sf(this_town,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(this_town,5) == 0;
	text1 = "There is a series of tunnels under the ruins of Fort Cariaris. They were once used for storage and rapid movement between the three towers.";
	text2 = "Now they reek of mold and rot. In the darkness, you hear heavy footsteps and long, hissing snarls. The raiders stay out of the tunnels as much as they can.";
	code =
		sf(this_town,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(this_town,6) == 0;
	text1 = "As you move farther into the scorched clearing before the towers, a horn sounds! The alert has been called. Immediately, a wave of drooling ka-beasts runs out from behind the towers. They fearlessly begin the hunt.";
	code =
		activate_hidden_group(1);
		sf(this_town,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(this_town,7) == 0;
	text1 = "__";
	code =
		sf(this_town,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(this_town,8) == 0;
	text1 = "__";
	code =
		sf(this_town,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(this_town,9) == 0;
	text1 = "__";
	code =
		sf(this_town,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(this_town,10) == 0;
	text1 = "__";
	code =
		sf(this_town,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(this_town,11) == 0;
	text1 = "__";
	code =
		sf(this_town,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(this_town,12) == 0;
	text1 = "__";
	code =
		sf(this_town,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "You try to open the door, but it is securely barred from the inside. Maybe you can get into one of the other towers.";

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "You deliver Solon a mortal wound. He stumbles backward, gasping, realizing that he is lost.";
	text2 = "Before he dies, he attempts one final act of defiance. He attempts to break the rod over his knee. You are ready, though. You leap forward and grab his hand. He looks you in the eye as you remove the enchanted baton from his grasp.";
	text3 = "Then he slumps to the ground and dies. His last thoughts are of the totality of his failure.";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "You find a banner of the army of Haven. It is decades old and in tatters. You think, for a moment, that it might have just been forgotten here since the days of the Great Uprising. Then you see recent tracks in the dust on the floor. Someone placed it here as a symbol of your weakness.";
	text2 = "A label on the back says, in barely legible letters, _Seventh Army of Haven._ You carefully take the banner down, fold it up, and store it in your pack. Perhaps some part of your army wants it returned.";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "Solon raises his carved rod and mutters a word of command. Some of the power within the staff is drained. Moments later, you are surrounded by a nimbus of unwholesome flame.";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "Solon raises his carved rod and mutters a word of command. Some of the power within the staff is drained. His hand begins to glow.";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "This is a heavy, leather-bound binder, full of letters, maps, rosters, ledgers, and all of the details that go into running a war. They describe the movements of the raiders that operated out of here.";
	text2 = "A few of them roamed the Low Dhaga. Most went down to the Gentle Coast. These were killed.";
	text3 = "The information is mostly out of date. You don't learn much. You do find one interesting thing, though: A map of Ouachita Mountain, far to the north. It looks like there are a lot of raiders hidden there.";
	text4 = "Of extra interest, the map notes that there is a concealed route in the mountain, so that raiders can escape in case of a siege. You can find it at the end of the valley to the west of the mountain.";
	code =
		sf(38,12,1);
	break;
	
begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "At last, you have found the commander of the fortress. He is a wizard of the Low Dhaga. Massive ka-boars stand to his sides, awaiting his command. Amazingly, they aren't trying to eat him.";
	text2 = "Whenever they seem distracted, the mage waves a long wooden rod, carved with runes. Then they snap to attention.";
	text2 = "He points the rod at you. _I am Solon. I have been waiting for you. You have cost me many precious ka-beasts, but no worry. They will be quickly replaced. You are far better a prize, [P]._";
	code =
		set_attitude(30008,10);
	break;
	
begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "_Nice rod._";
	text1 = "_It is. It is the weapon we will use to break Haven and drive you from our lands._";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = gf(42,11) == 0;
	question = "_I've been hunting you for some time._";
	text1 = "_And you have found me. I would prefer that you had fled after we showed our power on the shores of the Gentle Coast. Instead, we will parley here, and I will take my prize. What say you, [P]?_";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = gf(42,11) > 0;
	question = "_I've been hunting you for some time._";
	text1 = "_You have destroyed our forces. Ouachita Mountain is lost. My raiders are broken. Still, I will have my revenge. Beasts, attack!_";
	action = END_TALK;

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "_Actually, we don't need to talk._ Attack.";
	text1 = "_Then we are both true warriors of the Low Dhaga! No womanish chatter for us. We will settle this like Ro! Beasts, attack!_";
	action = END_TALK;
	
begintalknode;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "_I need information from you._";
	text1 = "_You claim Ro blood, but you chatter like an outsider. Still, talk is inevitable. I plan to capture you and, if I let you live, take you to Prova Krug in chains. You will need to learn a few things to be a proper hostage._";

begintalknode;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "_You need to pay for attacking my vassals._";
	text1 = "_Do I? I think not. Haven needs to pay for its crimes against us, half-Ro. You will be put in chains, and, if we spare you, taken to Prova Krug. Any final words before my boars force you to submit?_";

begintalknode;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "_You need to pay for attacking me._";
	text1 = "_So you are on a quest of vengeance? Your Dhagan blood is showing, half-Ro. Still, you must fail. Haven needs to pay for its crimes against us, half-Ro. You will be put in chains, and, if we spare you, taken to Prova Krug. Any final words before my boars force you to submit?_";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_Did you try to assassinate me?_";
	text1 = "_We did. Our attack on the Gentle Coast was a demonstration. Our brave fighters died, and all of the Rokaj saw our resolve. Also, attacking you forced Haven to try to take charge, angering my people more._";
	text2 = "_It was a glorious day. Costly, but glorious._";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_Why are you attacking Haven?_";
	text1 = "_Because we must be rid of you. You have shown that you are no longer worthy to lead us._";

begintalknode;
	state = 12;
	nextstate = 13;
	condition = 1;
	question = "_Do you know anything about the Wolf?_";
	text1 = "He nods. _The Wolf commands. I have never met him. I only hear his words. However, he did give my raiders a gift to show his skill and power._";

begintalknode;
	state = 13;
	nextstate = 12;
	condition = 1;
	question = "_What gift is that?_";
	text1 = "Solon holds up his rod. When he does, the ka-boars turn and follow it with their eyes. _We use these staves to command the ka-beasts. They are mindless beasts, yes, but under the right influence, they are powerful servants._";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_I want to give you the chance to surrender._";
	text1 = "Solon laughs. _I am a true warrior of the Ro! Even if I die, I will only inspire the others to greater courage. Come, [P]. It is time. You will be beaten into submission. Beasts, attack!_";
	action = END_TALK;

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_I want you to give me the chance to surrender._";
	text1 = "_What?_ He looks disgusted. _Before, I would have merely beaten you down and took you, in chains, to the upward peaks. Now, I can't stand for Ro blood to flow in anyone so craven. You must die. Beasts, attack!_";
	action = END_TALK;

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_For crimes against Haven, I sentence you to death._";
	text1 = "_Well spoken, half-Ro. Before you are bound, you will realize that Haven law no longer applies in these peaks. Beasts, attack!_";
	action = END_TALK;
	
	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				